// 轮播图信息模块
import request from "@/utils/request"

//获取轮播图
export const getBanner = params =>{
  return request({
    method:'GET',
    url:'/banner',
    params
  })
}

//ID轮播图信息
export const getBannerID = params =>{
  return request({
    method:'GET',
    url:'/banner/id',
    params
  })
}
//修改轮播图信息
export const postUpdateBanner  =  (data) =>{
  return request({
    method:'POST',
    url:'/banner/update',
    data
  })
}
//添加轮播图
export const postAddArticle  =  (data) =>{
  return request({
    method:'POST',
    url:'/banner/add',
    data
  })
}

//删除轮播图
export const postDeleteBanner = data =>{
  return request({
    method:"POST",
    url:'/banner/delete',
    data
  })
}